const path= require("path")
function resolve(dir){
    // console.log(path.join(__dirname, dir))
    return path.join(__dirname, dir)
}
module.exports={
    lintOnSave: false,
    devServer:{
        proxy:{
            "/api":{
                target:"http://182.92.128.115/"
            }
        },
    },
    configureWebpack:{
        resolve:{
            alias: {
                components:resolve('src/components'),
                http:resolve( 'src/http'),
                routes: resolve('src/routes'),
                router:resolve( 'src/router'),
                store:resolve( 'src/store'),
                pages:resolve('src/pages'),
                mock:resolve('src/mock'),
                common:resolve('src/common'),
            }
        }
    }
}